package plus.run;


final class Thunk {
	final int staticLink;
	final int entryPoint;
	Thunk(int sl, int ep) {
		staticLink = sl;
		entryPoint = ep;
	}
	public void jsr() {
		// push the saved static link
		VM.push(staticLink);
		// jsr to the saved entry point
		VM.call(entryPoint);
	}
}
